<template>
  <div class="barnd">
    <div class="brand_title">周一周四 · 新品首发</div>
    <ul>
      <!-- <li v-for="item in newGoodsListarr" :key="item.id">
        <img :src="item.list_pic_url" alt="">
        <p>{{item.name}}</p>
        <div>￥{{item.retail_price | priceFilter}}元</div>
      </li> -->
      <li>
        <img src="http://yanxuan.nosdn.127.net/767b370d07f3973500db54900bcbd2a7.png" alt="">
        <p>草莓泥</p>
        <div>￥68.00元</div>
      </li>
      <li>
        <img src="http://yanxuan.nosdn.127.net/767b370d07f3973500db54900bcbd2a7.png" alt="">
        <p>草莓泥</p>
        <div>￥68.00元</div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
    props:["newGoodsListarr"],
    filters: {
    // 价格过滤器，所有价格保留两位小数
    priceFilter(money) {
      return money.toFixed(2);
    }
  }
};
</script>

<style lang="less" scoped>
.barnd {
  background-color: #fff;
  margin-bottom: 10px;
  .brand_title {
    text-align: center;
    height: 50px;
    line-height: 50px;
  }
  ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 5px;
    li {
      width: 49.5%;
      margin-bottom: 5px;
      background: #fff;
      position: relative;
      img {
        height: 180px;
        width: 100%;
      }
      p {
        text-align: center;
        margin: 0;
      }
      div {
        color: darkred;
        text-align: center;
        line-height: 30px;
      }
    }
  }
}
</style>